package com.yq.day30.udp1.v4;

import java.net.DatagramSocket;
import java.net.SocketException;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/06/30 17:28
 */
public class Demo01 {
    public static void main(String[] args) throws SocketException {
        DatagramSocket socket = new DatagramSocket(8888);
        //    创建两个任务
        new Thread(new SendTask(socket,"127.0.0.1",9999)).start();
        new Thread(new ReceiveTask(socket)).start();
    }
}
